﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="NewsList.ascx.cs" Inherits="Indochinaodyssey.UserControl.News.NewsList" %>
<%@ Register Assembly="CollectionPager" Namespace="SiteUtils" TagPrefix="cc1" %>
<style type="text/css">
    .item-content
    {
        height: 130px;
        border-bottom-color: #b2b2b2;
        border-bottom-style: dotted;
        border-bottom-width: 1px;
    }
    
    .readmore
    {
        width: 10px;
        height: 10px;
        display: inline;
    }
</style>
<div class="content-palce">
    <div class="content-palce-title" style="margin-top: 1px; width: 697px;">
        News List
    </div>
        <div class="content-place-body"> 
           <asp:DataList ID="DataList1" runat="server" Width="100%">
            <ItemTemplate>
                <div class="item-content">
                    <img alt="tab" style="display: inline;" src="../../Styles/Images/tab_right.png" />
                    <asp:HyperLink ID="HyperLink2" Font-Underline="false" ForeColor="#000000" Font-Bold="true"
                        runat="server" NavigateUrl='<%# "~/newsdetail.aspx?id=" + Eval("Id") %>'><%# Eval("TieuDe") %></asp:HyperLink>
                    <table width="100%">
                        <tr>
                            <td valign="top" height="102px" width="122px">
                                <div class="photo-error" style="width: 120px; height: 100px; border-width: 1px; border-color: #b9b9b9;
                                    border-style: solid">
                                    <a id="hinhAnh" href='<%# "~/HalongHotel.aspx?id=" + Eval("Id") %>' runat="server"
                                        title='<%# Eval("TieuDe") %>' style="text-decoration: none;">
                                        <img id="Img1" runat="server" alt="" src='<%# "~/Images/HinhAnh/" + Eval("HinhAnh") %>' width="120" height="100"
                                            style="border-width: 0px;" /></a>
                                </div>
                            </td>
                            <td valign="top">
                                <asp:Label ID="Label3" runat="server" Text='<%# Eval("GhiChu") %>'></asp:Label>
                            </td>
                            <td valign="bottom" align="right" style="height: 102px; width: 80px">
                                <div class="more">
                                    <img alt="Read more" class="readmore" src="../../Styles/Images/read-more.png" />
                                    <asp:HyperLink ID="linkMore" runat="server" NavigateUrl='<%# "~/newsdetail.aspx?id=" + Eval("Id") %>'>Read more</asp:HyperLink>
                                </div>
                            </td>
                        </tr>
                    </table>
                </div>
            </ItemTemplate>
    </asp:DataList>
        </div>

    <asp:ObjectDataSource ID="odsNewsList" runat="server" TypeName="IOBusiness.clsBSNews">
    </asp:ObjectDataSource>
    <cc1:CollectionPager ID="CollectionPager1" runat="server" LabelText="Page :" MaxPages="20"
        ResultsFormat="" ShowFirstLast="True" ViewStateMode="Enabled">
    </cc1:CollectionPager>
</div>
